package com.blb.javatest02.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.javatest02.entity.Attend;
import com.blb.javatest02.mapper.AttendMapper;
import com.blb.javatest02.service.IAttendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-27
 */
@Service
public class AttendServiceImpl extends ServiceImpl<AttendMapper, Attend> implements IAttendService {

    @Autowired
    private AttendMapper attendMapper;

    @Override
    public Page<Attend> getAttendPage(Long current, Long size) {
        return attendMapper.selectAttendPage(new Page<>(current,size));
    }
}
